<script setup>
</script>

<template>
   <div style="height: 650px;border: 8px solid purple;">
  <h1 style="color: black; text-align: center;">商城上新</h1>
</div>
</template>

<style scoped lang='less'>
// 定义Less变量
@priceColor: #ff4d4f; // 可以根据你的设计调整这个颜色值

.goods-list {
  display: flex;
  justify-content: space-between;
  height: 406px;

  li {
    width: 306px;
    height: 406px;
    background: #f0f9f4;
    transition: all 0.5s;

    &:hover {
      transform: translate3d(0, -3px, 0);
      box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
    }

    img {
      width: 306px;
      height: 306px;
      object-fit: cover; /* 确保图片填充容器 */
    }

    p {
      font-size: 22px;
      padding-top: 12px;
      text-align: center;
      text-overflow: ellipsis;
      overflow: hidden;
      white-space: nowrap;
    }

    .price {
      color: @priceColor; // 使用Less变量
    }
  }
}
</style>
